﻿

using System;
using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace CoreCms.Net.Model.Entities
{

    /// <summary>
    ///  业务分类表
    /// </summary>
    [SugarTable("xrc_other_type", TableDescription = "产品分类表")]
    public partial class XrcOtherType
    {

        /// <summary>
        /// 产品分类表
        /// </summary>
        public XrcOtherType()
        {

        }
        /// <summary>
        ///   分类ID
        /// </summary>
        [Display(Name = "ID")]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Required(ErrorMessage = "请输入{0}")]
        public int id { get; set; }

        /// <summary>
        ///  类型名称
        /// </summary>
        [Display(Name = "类型名称")]
        [Required(ErrorMessage = "请输入{0}")]
        [StringLength(30, ErrorMessage = "{0}不能超过{1}字")]
        public string type_name { get; set; }
      
        /// <summary>
        ///    所属店铺id
        /// </summary>
        [Display(Name = "所属店铺id")]
        [Required(ErrorMessage = "请输入{0}")]
        [StringLength(200, ErrorMessage = "{0}不能超过{1}字")]
        public int gid { get; set; }

        /// <summary>
        ///     创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        public DateTime? create_time { get; set; }

        /// <summary>
        ///     是否删除
        /// </summary>
        [Display(Name = "是否删除")]
        [Required(ErrorMessage = "请输入{0}")]
        public int delete { get; set; }

        /// <summary>
        ///  排序
        /// </summary>
        [Display(Name = "排序")]
        [Required(ErrorMessage = "请输入{0}")]
        public int sort { get; set; }
    }
}